<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>部门管理</title>

</head>
<body>
<a href="#" th:href="@{/emp/to}">首页</a>
<div style="text-align: center">
    <span style="color: darkslategray; font-size: 30px">部门管理</span>
    <hr/>
    <comment>
        <table class="list" border="1" bgcolor="#faebd7">
            <!--id  name sex  ctime   xl  zid  address  phone  jphone  did-->
            <tr>
                <th>id</th>
                <th>部门名称</th>
                <th>创建时间</th>
                <th>删除</th>
                <th>修改</th>
                <th>添加</th>
            </tr>
            <tr th:each="dept : ${list}">
                <td th:text="${dept.id}"></td>
                <td th:text="${dept.dname}"></td>
                <td th:text="${#dates.format(dept.ctime,'yyyy-MM-dd')}"></td>
                <td><a href="#" th:href="@{/emp/deleteDept(id=${dept.id})}">删除</a></td>
                <td><a href="#" th:href="@{/emp/toUpDept(id=${dept.id})}">修改</a></td>
                <td> <a href="#" th:href="@{/t/toadddept}">添加</a></td>
            </tr>
        </table>
    </comment>
</div>
</body>
</html>